package com.lngsyz.ywtb.enumeration;

/**
 * 印章介质字典（物理、芯片、电子、物电一体）
 * 
 * @version: 1.0
 */

public enum SealMedia {
	PHYSICAL("物理", "1"), ELEC("电子", "3");

	private String name;
	private String key;

	private SealMedia(String name, String key) {
		this.name = name;
		this.key = key;
	}

	public static String getNameByKey(String key) {
		for (SealMedia state : SealMedia.values()) {
			if (state.getKey().equalsIgnoreCase(key)) {
				return state.getName();
			}
		}
		return "";
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}
}
